package cn.hx.mall.permissions.controller;

import cn.hx.mall.permissions.entity.Permission;
import cn.hx.mall.permissions.service.PermissionService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.annotation.Resource;

/**
 * 后台用户权限表(Permission)表控制层
 *
 * @author makejava
 * @since 2022-11-02 17:02:36
 */
@Controller
public class PermissionController {

    @Resource
    private PermissionService permissionService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public Permission selectOne(Long id) {
        return this.permissionService.queryById(id);
    }

}